// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Router from 'vue-router'
import VueResource from 'vue-resource'
import goods from './components/goods/goods.vue'
import seller from './components/seller/seller.vue'
import ratings from './components/ratings/ratings.vue'

import './common/stylus/index.styl'
Vue.use(Router)
Vue.use(VueResource)
Vue.config.productionTip = false
const router = new Router({
  linkActiveClass: 'active',
  routes: [
    // { path: '/', redirect: '/goods' },
    { path: '/', redirect: {name: 'goods'} },
    { path: '/goods', name: 'goods', component: goods },
    { path: '/seller', name: 'seller', component: seller },
    { path: '/ratings', name: 'ratings', component: ratings }
  ]
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: c => c(App)
})
